package com.kqb.pojo;

import java.io.Serializable;
import java.util.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * e_role
 */
@Data
@ApiModel("角色")
public class Role implements Serializable {

    private Integer id;
    @ApiModelProperty(value = "角色名称", required = true)
    private String name;
    @ApiModelProperty(value = "是否启用", required = true)
    private String isEnabled;
    @ApiModelProperty(hidden = true)
    private Date createdAt;

    private String isDeleted;
    /**
     * 权限集合
     */
    private List<Permission> permissions = new ArrayList<>();

    private static final long serialVersionUID = 1L;
}